package com.ascentive.finallyfast.quickboost;

import android.app.ActivityManager;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;

public class QBDetailTask {
	private ActivityManager.RunningTaskInfo taskruninfo = null;
	private ApplicationInfo appinfo = null;
	private String packageName = null;
	private String className = null;
    private PackageManager pm;
    private Intent intent = null;
    
    public QBDetailTask(Context ctx, ActivityManager.RunningTaskInfo runinfo) {
        this.taskruninfo = runinfo;
        packageName = runinfo.baseActivity.getPackageName();
		className = runinfo.baseActivity.getClassName();
		
        // pm = ctx.getApplicationContext().getPackageManager();
    }
    
    public String getTitleTask() {
    	// RunningTaskInfo ti = list.get(position);
    	if(packageName != null) 
    		return packageName;
    	else 
    		return new String("Tejashree");
    }
}
